package persistent.prestige.module.ums.model;


import java.util.Set;


import persistent.prestige.platform.base.model.AuditTreeNodeModel;

/**
 * @Title:Permission.java
 * @Package persistent.prestige.ums.model
 * @Description 系统权限（菜单）
 * @author prestigeding
 * @date 2012-12-12 下午11:28:47
 * @version V1.0
 */

public class UmsPermission extends AuditTreeNodeModel<UmsPermission> {
	
	/** 菜单*/
	public static final String PERM_TYPE_MENU = "1";
	/** 非菜单*/
	public static final String PERM_TYPE_OTHER = "2";

	/** 权限描述*/
	private String description;
	/** URL*/
	private String url;
	
	private Set<UmsRole> roles;
	
	/** 小图标*/
	private Icon icon;

	/** 样式 */
	private String iconClass = "pictures";
	
	/** 类型   1:菜单;0:按钮*/
	private String type;
	
	/** 使用范围  0:前台;1后台;2:两者*/
	private String scope;
	
	/** 是否启用 1:是;0:否*/
	private String status;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Set<UmsRole> getRoles() {
		return roles;
	}

	public void setRoles(Set<UmsRole> roles) {
		this.roles = roles;
	}
	
	public Icon getIcon() {
		return icon;
	}

	public void setIcon(Icon icon) {
		this.icon = icon;
	}

	public String getIconClass() {
		return iconClass;
	}

	public void setIconClass(String iconClass) {
		this.iconClass = iconClass;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
